package one.stand.mapper;

import one.stand.dto.CardCustomerDto;
import one.stand.model.BusinessCard;
import one.stand.model.BusinessCardModel;
import one.stand.response.GetCompanyStaffResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface BusinessCardPublicMapper {

    Integer selectCompanyCard(@Param("id") Integer id);

    Double selectRateRank(Integer cardId);

    BusinessCardModel selectByPrimaryKey2(Integer cardId);

    BusinessCardModel select(BusinessCardModel record);

    CardCustomerDto selectCustomer(@Param("cardId") Integer cardId);

    BusinessCardModel selectRepeatInfo(BusinessCardModel model);

    BusinessCard selectByUserId(@Param("userId") Integer userId);

    BusinessCard selectMyCard(BusinessCardModel record);

    BusinessCardModel selectCrmPersonalData(Integer cardId);

    /**
     * 获取公司员工
     */
    List<GetCompanyStaffResponse> getCompanyStaffList(BusinessCardModel model);

    int addSeeNum(@Param("cardId") Integer cardId);
    void updateWxToCode(@Param("companyId") Integer companyId);
}